/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.lib.client.session;

import org.lucava.boatskeeper.shared.dto.UserDto;

/**
 *
 * @author glenn
 */
public class SessionManager {

    private static SessionManager instance = null;
    private String sessionID = null;
    private UserDto user;

    public SessionManager() {
    }

    public static SessionManager getInstance() {

        if (instance == null) {
            instance = new SessionManager();
        }
        return instance;
    }

    public String getSessionID() {
        return sessionID;
    }

    public void setSessionID(String sessionID) {
        this.sessionID = sessionID;
    }

    public UserDto getUser() {
        return this.user;
    }

    public void setUser(UserDto user) {
        this.user = user;
    }
}
